#pragma once

#include <QtWidgets/QWidget>
#include "ui_SchoolSportMeeting.h"
#include "VerificationCode.h"
#include "PasswordLineEdit.h"
#include <QMessageBox>
#include "LogIn.h"
#include "InstructionsForUse.h"
#include "SportMeeting.h"
#include "forget.h"
class SchoolSportMeeting : public QWidget
{
    Q_OBJECT

public:
    SchoolSportMeeting(QWidget *parent = nullptr);
    ~SchoolSportMeeting();

    QString password;
    QString school;
    QString code;

    void paintEvent(QPaintEvent* event);
    void setBtnStyle(QPushButton* btn);
    // 弹窗
    friend void message(QString title,QString text,QMessageBox::Icon,QMessageBox::Button, QWidget* parent);
    friend int messageQuestion(QString title, QString text,QMessageBox::StandardButton, QMessageBox::StandardButton,QWidget* parent);
        
    
private:
    Ui::SchoolSportMeetingClass ui;
    VerificationCode* verCode;
    PasswordLineEdit* passwordLineEdit;

private slots:
    // 登录按钮
    void logIn();
    // 注册按钮
    void register_2();
    // 忘记密码
    void forgetPassword();
    // 使用说明
    void explain();
    //更新学校的注册信息
    void updateSchool();
};
